<?php
namespace Sensio\HelloBundle\Entity;
use \DateTime;

/**
 * @orm:Entity
 */
class Article
{
    /**
     * @orm:Id
     * @orm:Column(type="integer")
     * @orm:GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @orm:Column(type="string", length="255")
     */
    protected $title;

    /**
     * @orm:Column(type="text", length="3000")
     */
    protected $text;

    /**
     * @orm:Column(type="date")
     */
    protected $date;

    /**
     * @orm:Column(type="time")
     */
    protected $time;
    
    public function __construct() {
        $dateTimeObject = new DateTime();
        $this->setDate($dateTimeObject);
        $this->setTime($dateTimeObject);
    }

    public function getId() {
        return $id;
    }
    
    public function getTitle() {
        return $title;
    }

    public function setTitle($title) {
        $this->title = $title;
    }

    public function getText() {
        return $text;
    }

    public function setText($text) {
        $this->text = $text;
    }

    public function getDate() {
        return $date;
    }

    public function setDate($date) {
        $this->date = $date;
    }

    public function getTime() {
        return $time;
    }

    public function setTime($time) {
        $this->time = $time;
    }
}
